/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.fatecpg.songs.managedbeans;

import br.com.fatecpg.songs.entity.util.Gender;
import java.util.Calendar;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Marcos
 */
@ManagedBean(name = "util")
@RequestScoped
public class UtilManagedBean {
    /* Retorna o ano atual */
    public String getYear(){
        return String.valueOf(Calendar.getInstance().get(Calendar.YEAR));
    }
    /* Retorna tipo de sexo masculino */
    public Gender getMale(){
        return Gender.M;
    }
    /* Retorna tipo de sexo femnino */
    public Gender getFemale(){
        return Gender.F;
    }
}
